//
//  AIFLogger.h
//  PywSdk
//
//  Created by liangyidong on 16/5/4.
//  Copyright © 2016年 zero. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "AIFService.h"
#import "AIFLoggerConfiguration.h"
#import "AIFURLResponse.h"
#import "Singleton.h"

@interface AIFLogger : NSObject

+ (void)logDebugInfoWithRequest:(NSURLRequest *)request
                        apiName:(NSString *)apiName
                        service:(AIFService *)service
                  requestParams:(id)requestParams
                     httpMethod:(NSString *)httpMethod;

+ (void)logDebugInfoWithResponse:(NSHTTPURLResponse *)response
                    responseData:(NSData *)responseData
                         request:(NSURLRequest *)request
                           error:(NSError *)error;

+ (void)logDebugInfoWithCachedResponse:(AIFURLResponse *)response
                            methodName:(NSString *)methodName
                     serviceIdentifier:(AIFService *)service;

signleton_h(Logger)

- (void)logWithActionCode:(NSString *)actionCode
                   params:(NSDictionary *)params;

@end
